import request from '@/hooks/request'

const Api = {
  pushconfig: '/platform/coupon/config/couponConfigPush', // 91卡卷授权
  getconfig: '/platform/coupon/config/getCouponConfig', // 91卡卷已授权用户列表
}

export const PushConfig = (parameter: Record<any, any>) => {
  return request({
    method: 'post',
    url: Api.pushconfig,
    data: parameter,
  })
}

export const GetConfig = (parameter: Record<any, any>) => {
  const formData = new FormData()
  formData.append('robotId', parameter.robotId)
  return request({
    method: 'post',
    url: Api.getconfig,
    data: formData,
  })
}
